package cn.spring.service;

import cn.spring.base.utils.PageInfo;
import cn.spring.domain.Department;
import cn.spring.domain.Employee;
import cn.spring.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    /**新增 */
    void insert(Department department);
    /**更新 */
    void update(Department department);
    /**删除 */
    void delete(Long id);
    /**查询所有 */
    List<Department> selectAll();
    /**查询单个部门 */
    Department selectById(Long id);

    void batchDelete(List<Long> ids);

    PageInfo<Department> queryPage(DepartmentQuery departmentQuery);
}
